package com.zhq.ui.main.fragment;

import android.os.Bundle;

import com.zhq.R;
import com.zhq.apputil.utils.ScreenUtils;
import com.zhq.apputil.widget.StateLayout;
import com.zhq.apputil.widget.TabBarIndicatorLayout;
import com.zhq.apputil.widget.config.TabBarItemBean;
import com.zhq.base.BaseFragment;
import com.zhq.base.BasePresenter;
import com.zhq.constant.AppConstant;

import butterknife.BindView;

/**
 * @author ZHQ
 * @create 2020/1/16
 * @Describe
 */
public class TabBarIndicatorFargment extends BaseFragment {
    @BindView(R.id.stl)
    TabBarIndicatorLayout slidingTabLayout;
    private String[] mTitles=new String[]{"每日推荐","社会新闻","军事","体育栏目","短视频"};

    @Override
    public int getLayoutUrl() {
        return R.layout.fragment_tabar_indicator;
    }

    @Override
    public void initData(Bundle savedInstanceState) {
        slidingTabLayout.setTabBarIndicator(new TabBarItemBean.Builder()
                .setSelectPosition(0)
                .setTabBarNormalColor("#ffffff")
                .setTabBarPressedColor("#00B0FF")
                .setTabBarIndicatorColor("#88000000")
                .setTabBarSelectFontSize(14)
                .setTabBarUnSelectFontSize(13)
                .setTabBarScrolled(true)
                .setTabBarRoundUnderIndicator(true)
                .setTabBarIndicatorHeight(ScreenUtils.dpToPx(getResources(), 2))
                .setTabBarTitle(mTitles)
                .build()
        ).show();
    }

    @Override
    public StateLayout.Builder getBuilderLayout() {
        return null;
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    public void pullData() {

    }
}
